<%@page contentType="text/html;charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<%@page import="com.wing.cms.domain.Lookfeel"%>
<%@ include file="/pub/includ.jsp"%>
<%
Lookfeel lookfeel = (Lookfeel)request.getAttribute("lookfeel");
%>
<script type="text/javascript">
       $(document).ready(function(){
      $.formValidator.initConfig({formid:"lookfeelform",alertmessage:false,onerror:function(msg){alert(msg)}});
      $("#name").formValidator({}).inputValidator({min:1,max:100,onerror:"皮肤名称不能为空，请确认"});
      $("#filename").formValidator({empty:"true"}).inputValidator({min:1,max:100,onerror:"文件名称过长，请确认"});
      $("#order_num").formValidator({}).inputValidator({min:1,max:3,onerror:"排序号必须在0-999之间，请确认"}).regexValidator({regexp:"^[0-9]*$",onerror:"排序号错误"});
      
});
	  var save = function(){
			var flag = "failure";
			if($.formValidator.pageIsValid()){
			var options = {
				type: 'POST',
				async: false,
				dataType: 'content-type',
				success: function(msg) {
					flag = msg;
				}
			}
			$('#lookfeelform').ajaxSubmit(options);
			}
			return flag;
		}
</script>
<form id="lookfeelform"  action="<%=path %>/cms/lookfeel/save" method="post" target="_self">
<table><tr><td height="2px"></td></tr></table>
<table align="center" border="0" cellpadding="0" cellspacing="1" class="table_nbw" >
	<tr >
		<td align="right" width="40%"  style="background-color:fff;height:25px;">皮肤名称</td>
		<td align="left" style="background-color:fff">&nbsp;<input class="textfiled_nbw"  type="text" id="name" name="name" value="${lookfeel.name}"></td>
	</tr>
	<tr >
		<td align="right" width="40%"  style="background-color:fff;height:25px;">文件名称</td>
		<td align="left" style="background-color:fff">&nbsp;<input class="textfiled_nbw"  type="text" id="filename" name="filename" value="${lookfeel.filename}"></td>
	</tr>
	<tr >
		<td align="right" width="40%"  style="background-color:fff;height:25px;">排序号</td>
		<td align="left" style="background-color:fff">&nbsp;<input class="textfiled_nbw"  type="text" id="order_num" name="order_num" value="${lookfeel.order_num}"></td>
	</tr>
	<tr >
		<td align="right" width="40%"  style="background-color:fff;height:25px;">是否公用</td>
		<td align="left" style="background-color:fff">&nbsp;<select name="ispub"  style="width: 200px">
					<option selected="selected" value="<%=Lookfeel.ISPUB_FALSE %>">否</option>
					<option <%if(Lookfeel.ISPUB_TRUE.equals(lookfeel.getIspub())){ %> selected="selected" <%} %> value="<%=Lookfeel.ISPUB_TRUE %>">是</option>
			</select>
		</td>
	</tr>
</table>
<table width="100%">
	<tr>
		<td align="center">
			<input type=hidden name="id" value="${lookfeel.id}" />
		</td>
	</tr>
</table>
</form>


